home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 07511000 / var0888.dms / var0888.adf / WoManD / man / Dictionary / directory < prev    next >
Text File  |  1992-09-19  |  4KB  |  75 lines

  1. DIRECTORY(1)                     DICTIONARY                     DIRECTORY(1)
  2.  
  3. DIRECTORY, PATH NAME
  4.  
  5.            AmigaDOS stores most of its information in what is called FILEs.
  6.      Files are a set of characters that can be used by the Amiga and/or by
  7.      Amiga users. To organize the set off files, and make them accessible in
  8.      a friendly way, files are stored in different directories, in the
  9.      same way that letters can be stored in folders.
  10.  
  11.            Directories can actually contains both files and directories at
  12.      the same time. There is no limit on the number of files and directories
  13.      that a directory can contain, the only limit being the available space
  14.      on the media they are stored on (floppy disk, hard disk, ... ). This
  15.      makes it possible to create a complex structure of nested directories.
  16.      Each disk device (floppy disk, hard disk, RAM disk) are directories
  17.      which do not belong to any other directory.
  18.  
  19.            The directory that contains a given directory is called its
  20.      parent, and the contained directory is called a subdirectory. A root
  21.      directory is a directory that has no parent.
  22.  
  23.            The only restriction on directories is that they cannot belong to
  24.      one of their ancestors. This mean that the AmigaDOS file system is
  25.      organized as a set of binary trees all starting from a root directory
  26.      consisted by a disk device.
  27.  
  28.             When using the SHELL or CLI, one is always in what is called the
  29.      current directory. This means that by default all commands look for
  30.      files and directories into that directory. With the CD command it is
  31.      possible to change the current directory and so, move up and down in
  32.      the directory structure. The DIR and LIST commands display the content
  33.      of a directory.
  34.  
  35.             Under Workbench, every files and directory is associated with an
  36.      icon. To look at the content of a directory, one must click on its icon.
  37.      Workbench then opens a new windows containing one icon per file or
  38.      directory.
  39.  
  40.             The full name of a directory is also often referred to as a
  41.      path_name. The syntax for a pathname can be of different types. It can
  42.      be either relative or absolute. Relative pathname describe the
  43.      directory name as starting from the current directory. For example,
  44.         mail/letters
  45.      represents the subdirectory letters that is contained in the mail
  46.      directory contained itself in the current directory.
  47.  
  48.             Absolute pathnames start from the name of a disk device.
  49.      For example :
  50.         df0:c
  51.      represents the c directory of the floppy inserted in drive 0.
  52.      As these examples show, the names of nested directories are separated
  53.      by the / symbol. Device names are distinguished by the fact that they
  54.      are always followed by a colon. At the beginning of a path, the / symbol
  55.      represents the parent directory. So, if the current directory is df0:c ,
  56.        /s
  57.      represents the directory df0:s . The root directory of the current
  58.      directory can be referred to by a colon. So if the current directory is
  59.      df0:text/letters ,
  60.         list :
  61.      is equivalent to
  62.         list df0:
  63.      .
  64.            Disks can be named either by their device name (e.g df0:) or by
  65.      their volume name. Workbench1.3:c is thus equivalent to df0:c (if the
  66.      Workbench1.3 disk is in drive 0!)
  67.      Another example: if df0:mail/letter/personal is the current directory,
  68.      then, the directory ///source/c/myprog is nothing but
  69.      df0:sources/c/myprog.
  70.  
  71. SEE ALSO:
  72.      FILE, CD, DIR, LIST, Volume, Pattern.
  73.  
  74.  
  75.